package org.example.modules.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.example.modules.user.entry.Chat;

import java.util.List;

/**
 * @Description ChatMapper
 * @Author xiaotian
 * @Date 2025-04-20
 */
@Mapper
public interface ChatMapper extends BaseMapper<Chat> {
    List<Chat> findBySenderIdAndReceiverId(String senderId, String receiverId,Integer jobId);

    List<Chat> getMessagesByOrderId(Integer orderId);
}